projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d09a1d6
)
* src/floatfns.c: Check against __FINITE_MATH_ONLY__ (bug#37140)
author
Mattias Engdegård
<mattiase@acm.org>
Thu, 29 Aug 2019 10:29:47 +0000
(12:29 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Fri, 30 Aug 2019 13:08:24 +0000
(15:08 +0200)
src/floatfns.c
patch
|
blob
|
history
diff --git
a/src/floatfns.c
b/src/floatfns.c
index 0a85df47decc9c6e10508a2a5d3720149c700614..49068bee7709aca14b61b6826fbc48f1b47aa3b1 100644
(file)
--- a/
src/floatfns.c
+++ b/
src/floatfns.c
@@
-48,6
+48,14
@@
along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <count-leading-zeros.h>
+/* Emacs needs proper handling of ±inf; correct printing as well as
+ important packages depend on it. Make sure the user didn't specify
+ -ffinite-math-only, either directly or implicitly with -Ofast or
+ -ffast-math. */
+#if defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__
+ #error Emacs cannot be built with -ffinite-math-only
+#endif
+
/* Check that X is a floating point number. */
static void